package com.suxin.invocation;

import java.lang.reflect.Proxy;

/**
 * @Classname Client
 * @Description [ TODO ]
 * @Author Tang
 * @Date 2020/11/21 17:23
 * @Created by ASUS
 */
public class Client {

    public static void main(String[] args) {

        UserMapper userMapper = (UserMapper)Proxy.newProxyInstance(UserMapper.class.getClassLoader(), new Class[]{UserMapper.class},
                new MyInvocation()
        );
        System.out.println(userMapper);
        userMapper.selectList();
    }

}